package cn.edu.scau.cmi.liweihang.spring.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.edu.scau.cmi.liweihang.spring.domain.Student;


public class Client {
	public static void main(String[] args) {
		ApplicationContext ac=ApplicationContextUtil.getApplicationContext();
		Student student=(Student) ac.getBean("student", Student.class);
		System.out.println(student.toString());
	}
}
